Skip to main content

Slack Scope

AutomatR.Slack.Activities.SlackScope

The "Slack Scope" activity in AutomatR establishes a connection between AutomatR and your Slack app using Token Authentication. This connection authorizes a robot to call the Slack APIs and access resources on your behalf. The activity requires an API Access token for authentication.

Properties

NameDescription
Input
API TokenThe API Access token used for authentication. This token is required to establish a connection with the Slack app. String variables containing the API Access token.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Slack Scope" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Slack Scope" activity onto the workflow.
  2. Configure the properties by specifying the API Access token for authentication.
  3. Optionally, configure the delay.
  4. Inside the "Slack Scope" activity, you can include other Slack-related activities to perform actions on Slack using the established connection.

Example: Consider an example where the "Slack Scope" activity is used to establish a connection with Slack:

Slack Scope:
Delay: 2
API Token: "your-api-token"

In this example, the activity establishes a connection with Slack using the provided API Access token with a 2-second delay. The connection details are stored in context properties for further use in the workflow.

The "Slack Scope" activity doesn't produce direct output properties. Instead, it establishes a connection to Slack, and the connection details are stored in the context properties for further use in the workflow.